Skip to content

fix listing public spaces in case there is one without a name#407

Merged
nikgraf merged 2 commits into
mainfrom
ng/fix-listing-public-spaces
Jul 30, 2025
Merged

fix listing public spaces in case there is one without a name#407
nikgraf merged 2 commits into
mainfrom
ng/fix-listing-public-spaces

Conversation

@nikgraf
Copy link
Copy Markdown
Collaborator

@nikgraf nikgraf commented Jul 30, 2025

No description provided.

@nikgraf nikgraf requested a review from Copilot July 30, 2025 16:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a runtime error that occurs when listing public spaces that don't have an associated page name, by making the page property nullable and handling undefined names gracefully.

  • Updates type definitions to allow null page objects and undefined names
  • Adds safe navigation and fallback logic for accessing page names

Comment thread apps/connect/src/hooks/use-public-spaces.ts Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@nikgraf nikgraf merged commit dae2ce4 into main Jul 30, 2025
6 checks passed
@nikgraf nikgraf deleted the ng/fix-listing-public-spaces branch July 30, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants